import 'package:flutter/cupertino.dart';

class ForgetPasswordProgress extends StatelessWidget {
  int progress ;
  double pos_w = 10;
  double pos_h = 10;

  ForgetPasswordProgress({this.progress = 0});

  @override
  Widget build(BuildContext context) {

    // TODO: implement build
    return Column(
      children: <Widget>[
        Container(
          alignment: Alignment.center,
          height: 30,
          child: Row(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Container(
                width: pos_w,
                height: pos_h,
                decoration: BoxDecoration(
                    color: Color(0xffAD5AFE), shape: BoxShape.circle),
              ),
              Container(
                color: Color(0xfff1f1f1),
                width: 80,
                height: 2,
              ),
              Container(
                width: pos_w,
                height: pos_h,
                decoration: BoxDecoration(
                    color: (progress>=1)?Color(0xffAD5AFE):Color(0xfff1f1f1), shape: BoxShape.circle),
              ),
              Container(
                color:Color(0xfff1f1f1),
                width: 80,
                height: 2,
              ),
              Container(
                width: pos_w,
                height: pos_h,
                decoration: BoxDecoration(
                    color: (progress>=3)?Color(0xffAD5AFE):Color(0xfff1f1f1), shape: BoxShape.circle),
              ),
            ],
          ),
        ),
        Container(
          padding: EdgeInsets.only(bottom: 20),
          alignment: Alignment.center,
          height: 50,
          child: Row(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Container(
                alignment: Alignment.center,
                width: 100,
                child: Text("手机验证"),
              ),
              Container(
                alignment: Alignment.center,
                width: 100,
                child: Text("修改密码"),
              ),
              Container(
                alignment: Alignment.center,
                width: 100,
                child: Text("完成"),
              ),
            ],
          ),
        )
      ],
    );

  }
}
